package com.xgame.service;

import com.xgame.data.OnlineUser;
import com.xgame.mybatis.model.User;


public interface UserService {
//
	// 根据用户名查找用户
	public User findUserByName(String name) throws Exception;

	// 根据uId查找用户
	public User findUserByuId(Long uId);
	
	/**
	 * 注册用户
	 * @param user
	 * @return
	 * @throws Exception 
	 * @since  1.0.0
	 */
	public OnlineUser add(User user) throws Exception;
}
